﻿
@model IEnumerable<VehicleManagement.Models.Approval>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@*<h2>Index</h2>*@

<div class="mas">
<div class="toptitle">
   司机负责人管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewDriverManager")
<div class="rightshow">
<p>
    @Html.ActionLink("Create New", "CreateApproval")
</p>
<table>
    <tr>
        <th>
            ApplyID
        </th>
        <th>
            ApplyState
        </th>
        <th>
            DriverID
        </th>
        <th>
            CarID
        </th>
        <th>
            Reason
        </th>
        <th>
            Priority
        </th>
        <th>
            Remark
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ApplyID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApplyState)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DriverID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Reason)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Priority)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Remark)
        </td>
        <td>
            @Html.ActionLink("Edit", "EditApproval", new { id = item.ApprovalID }) |
            @Html.ActionLink("Details", "ApprovalDetails", new { id = item.ApprovalID }) |
            <div class="myapplytable_dt">
        <a href="javascript:void(0)" onclick="DeleteApproval(@item.ApprovalID)">删除</a>
        </div>
        </td>
    </tr>
}

</table>


</div>

<div class="clear"></div>
	
</div>

